/**
 * @description 博客数据模型 （数据库博客表）
 *  @author 追追
 */

const seq = require('../seq');
const { STRING, INTEGER, TEXT } = require('../types');

const Blog = seq.define('blog', {
    userId: {
        type: INTEGER,
        allowNull: false,
        comment: '用户 ID',
    },
    content: {
        type: TEXT,
        allowNull: false,
        comment: '微博内容',
    },
    image: {
        type: STRING,
        comment: '图片地址',
    },
});
module.exports = Blog;
